<%= form_for @client, :url => client_update_path(@client), :method => :put do |f| %>

  <% if @client.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@client.errors.count, "error") %> prohibited this category from being saved:</h2>
      <ul>
      <% @client.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div>
    <%= f.label :first_name %><br />
    <%= f.text_field :first_name %>
  </div>
  
  <div>
    <%= f.label :middle_name %><br />
    <%= f.text_field :middle_name %>
  </div>
  
  <div>
    <%= f.label :last_name %><br />
    <%= f.text_field :last_name %>
  </div>
  
  <div>
    <%= f.label :email %><br />
    <%= f.email_field :email %>
  </div>
  
  <div>
    <%= f.label :gender %><br />
    <%= f.radio_button :gender, "male", :checked => 'checked' %>Male
    <%= f.radio_button :gender, "female" %>Female
  </div>
  
  <div>
    <%= f.label "Prefered Contact Name" %><br />
    <%= f.text_field :pref_cont_name %>
  </div>
  
  <div>
    <%= f.label :birthday %><br />
    <%= f.date_select :birthday, :start_year => Time.now.year - 100 ,:end_year => Time.now.year %>
  </div>
  
  
  <div>
    <%= f.label "Social Security Number" %><br />
    <%= f.text_field :ssn %>
  </div>
  
  
  <div>
    <%= f.label :physical_address %><br />
    <%= f.text_area :street_address ,:rows => 5 ,:cols => 34 %>
  </div>
  
  
  <div>
    <%= f.label :mailing_address %><br />
    <%= f.text_area :mailing_street_address,:rows => 5 ,:cols => 34 %>
  </div>
  
  <div>
    <%= f.label :phone_number %><br />
    <%= f.text_field :phone_number %>
  </div>
  
  <div>
    <%= f.label "Prefered Contact Medium" %><br />
    <%= f.radio_button :pref_contact_medium, "email", :checked => 'checked' %>Email
    <%= f.radio_button :pref_contact_medium, "mail" %>Mail
    <%= f.radio_button :pref_contact_medium, "phone" %>Phone
  </div>
  
  <div>
    <%= f.label "Prefered Contact Medium" %><br />
    <%= f.select(:pref_contact_time, Client::CONTACT_TIME ) %>
  </div>
  
  <div>
    <%= f.label "Referral Source" %><br />
    <%= f.text_field :ref_source %>
  </div>
  <div>
    <%= f.label "Password" %><br />
    <%= f.text_field :password %>
  </div>
    <div>
    <%= f.label "Password confirmation" %><br />
    <%= f.text_field :password_confirmation %>
  </div>

  <%= f.submit "Update" %>
<% end %>

